package com.wang.service.impl;

import com.wang.service.RedisService;
import com.wang.util.RedisUtil;
import org.springframework.stereotype.Service;

/**
 * @Classname RedisServiceImpl
 * @Description TODO
 * @Date 2024/5/24 9:35
 * @Created by pc
 */
@Service
public class RedisServiceImpl implements RedisService {
    @Override
    public void setObj(String key, Object obj, long timeout) {
        RedisUtil.set(key, obj, timeout);
    }

    @Override
    public Object getObj(String key) {
        return RedisUtil.get(key);
    }
}
